/* GUI CONVERTED from reworp3a.i (converter v1.76) Thu Apr 25 19:01:11 2002 */
/* reworp3a.i - REPETITIVE (WIP Scrap Valuation Report Include                */
/* Copyright 1986-2002 QAD Inc., Carpinteria, CA, USA.                        */
/* All rights reserved worldwide.  This is an unpublished work.               */
/* $Revision: 1.4.1.2 $                                                       */
/*V8:ConvertMode=Report                                                       */
/* REVISION: 7.3            LAST MODIFIED: 10/31/94   BY: WUG *GN77*          */
/* REVISION: 8.5            LAST MODIFIED: 03/24/96   BY: GWM *J0GG*          */
/* REVISION: 8.6            LAST MODIFIED: 05/20/98   BY: *K1Q4* Alfred Tan   */
/* REVISION: 9.1            LAST MODIFIED: 08/12/00   BY: *N0KP* Mark Brown   */
/* Old ECO marker removed, but no ECO header exists *F0PN*                    */
/* $Revision: 1.4.1.2 $   BY: Jean Miller        DATE: 04/16/02  ECO: *P05H*  */
/******************************************************************************/
/* All patch markers and commented out code have been removed from the source */
/* code below. For all future modifications to this file, any code which is   */
/* no longer required should be deleted and no in-line patch markers should   */
/* be added.  The ECO marker should only be included in the Revision History. */
/******************************************************************************/

/* WIP/SCRAP VALUATION REPORT INCLUDE                                         */
/* {1} = FIELD NAME OF COST ELEMENT TO REPORT                                 */
/* {2} = DOWN 1 COMMAND IF NEEDED                                             */


/*GUI preprocessor directive settings */
&SCOPED-DEFINE PP_GUI_CONVERT_MODE REPORT

fieldname = "{1}".

{gprun.i ""gpfield.p""
   "(input fieldname,
     input-output tablename,
     output fieldfound,
     output fieldlabel,
     output fieldcollabel,
     output fielddatatype,
     output fieldformat,
     output fielddesc,
     output fieldvalexp,
     output fieldvalmsg,
     output fieldextent)"}

if not fieldfound then fieldlabel = ?.

cost_tot = {1} * total_qty.

display
   fieldlabel @ cost_element
   {1}        @ cost_element_cost
   cost_tot WITH STREAM-IO /*GUI*/ .

{2}
